const time = 1660978901891
// 时间戳转换

var date = new Date(time)
Y = date.getFullYear() + '-'
M =
  (date.getMonth() + 1 < 10
    ? '0' + (date.getMonth() + 1)
    : date.getMonth() + 1) + '-'
D = date.getDate() + ' '
h = date.getHours() + ':'
m = date.getMinutes() + ':'
s = date.getSeconds()
console.log(Y + M + D + h + m + s) //呀麻碟
